package com.suke.czx.modules.tb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;


/**
 * 点赞表
 *
 * @author developer
 * @email developer@163.com
 * @date 2025-05-17 21:45:12
 */
@Data
@TableName("tb_likes")
public class TbLikes implements Serializable {
    public static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "用户ID (主键, 自增)")
    @JsonProperty(value = "likeId")
    public Long likeId;

    @ApiModelProperty(value = "用户id")
    @JsonProperty(value = "userId")
    public String userId;

    @ApiModelProperty(value = "产品id")
    @JsonProperty(value = "productId")
    public Long productId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonProperty(value = "createDate")
    public Date createDate;

	public TbLikes() {
	}

	public TbLikes(String userId, Long productId) {
		this.userId = userId;
		this.productId = productId;
	}
}
